<%@ page language="Java"import="java.util.*,descriptor.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%
	CompanySupDescriptor supervisorDes = (CompanySupDescriptor)request.getAttribute("supervisorDes");
	CompanyDescriptor compDes = (CompanyDescriptor)request.getAttribute("compDes");
%>

<html>
	<jsp:include page="CareerHeader.jsp" >
		<jsp:param name="pageTitle" value="Work Placement Management System - Career Officer" />
	</jsp:include>
	<body  OnLoad="showmenu(document.getElementById('smenu4'));">
		<jsp:include page="CareerPageHeader.jsp"></jsp:include> 
		<div id="container">
			<jsp:include page="CareerMenu.jsp" ></jsp:include>
			<div id="content">
				<h3 class="posttitle">Career Officer - Update Supervisor's Details</h3>
				<div class="entry">
					<form method="post">
						<input type="hidden" name="action" value="updatedSupervisor">
						<input type="hidden" name="supervisorID" value="<%= supervisorDes.getUserId() %>"> 
						<input type="hidden" name="compID" value="<%= compDes.getId() %>"> 
						<fieldset>
							<legend>Company Details</legend>
							<p>Name: <input type="text" name="CompName" value="<%= compDes.getName() %>" disabled></p>
						</fieldset>
						<fieldset>
							<legend>Recruiter Details</legend>
							<p>Surname: <input type="text" name="CompSupSName" value="<%= supervisorDes.getName() %>"></p>
							<p>First Name: <input type="text" name="CompSupFName" value="<%= supervisorDes.getFirstName() %>"></p>
							<p>Email: <input type="text" name="CompSupEmail" value="<%= supervisorDes.getMail() %>"></p>
						</fieldset>
						<fieldset>
							<p><button type="submit">Update Recruiter</button> <button type="reset">Clear</button></p>
						</fieldset>
					</form>	
				</div>
	    	</div>
			<jsp:include page="CareerPageFooter.jsp"></jsp:include>
		</div>	
	</body>
</html>